package com.mx.tool.result;

/**
 * @Author: 徐建鹏.
 * @create: 2021-11-11 15:26
 * @Description:
 */
public class R {

    private String code;

    private String msg;

    private Object data;

    private R() {
    }

    public static R craate() {
        return new R();
    }

    public R code(String code) {
        this.code = code;
        return this;
    }

    public R msg(String msg) {
        this.msg = msg;
        return this;
    }

    public R data(Object data) {
        this.data = data;
        return this;
    }

    public String code() {
        return code;
    }

    public String msg() {
        return msg;
    }

    public Object data() {
        return data;
    }

}
